Math.numericBound Method

Bound the specified value to the specified min and max.
 
 
Static This method is static.

Parameters

min

Type: Number (Integer)
The maximum number.
max

Type: Number (Integer)
The minimum number
value

Type: Number (Integer)
The value to bound.

Return Value


Type: Number (Integer)
The value if in between min and max, min if value smaller than min, max if value larger than max.